﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Supplier_Manager.aspx.cs"
    Inherits="page_Supplier_Manager" %>

<%@ Register Assembly="Infragistics2.WebUI.UltraWebGrid.v7.1, Version=7.1.20071.40, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.UltraWebGrid" TagPrefix="igtbl" %>
<%@ Register Assembly="Infragistics2.WebUI.Misc.v7.1, Version=7.1.20071.40, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.Misc" TagPrefix="igmisc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../style/main.css" rel="stylesheet" type="text/css" />
    <script src="../js/Supplier.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <input type="hidden" id="SID" runat="server" />
    <br />
    <center>
        <table style="width: 96%; background-color: #85BDE2; vertical-align: middle;" border="0px"
            cellpadding="0px" cellspacing="1px">
            <tr>
                <td colspan="2" style="background-color: #DAE7F8; height: 30px;">
                    <strong>供应商管理</strong>
                </td>
            </tr>
            <tr style="background-color: #DAE7F8;">
                <td style="height: 350px">
                    <igtbl:UltraWebGrid ID="UWGSupplier" runat="server" Height="350px" Width="100%" 
                        OnPageIndexChanged="UWGSupplier_PageIndexChanged" style="top: 0px; left: 0px">
                        <Bands>
                            <igtbl:UltraGridBand AllowUpdate="No">
                                <SelectedRowStyle BackColor="#99FF66" BorderColor="#99FF33" BorderStyle="Solid" BorderWidth="1px" />
                                <Columns>
                                    <igtbl:UltraGridColumn BaseColumnName="SupplierName" HeaderText="供应商名称" Key="SupplierName"
                                        Width="20%">
                                        <Header Caption="供应商名称">
                                        </Header>
                                    </igtbl:UltraGridColumn>
                                    <igtbl:UltraGridColumn BaseColumnName="Address" HeaderText="地址" Key="Address" Width="20%">
                                        <Header Caption="地址">
                                            <RowLayoutColumnInfo OriginX="1" />
                                        </Header>
                                        <Footer>
                                            <RowLayoutColumnInfo OriginX="1" />
                                        </Footer>
                                    </igtbl:UltraGridColumn>
                                    <igtbl:UltraGridColumn BaseColumnName="Contact" HeaderText="联系人" Key="Contact" Width="20%">
                                        <Header Caption="联系人">
                                            <RowLayoutColumnInfo OriginX="2" />
                                        </Header>
                                        <Footer>
                                            <RowLayoutColumnInfo OriginX="2" />
                                        </Footer>
                                    </igtbl:UltraGridColumn>
                                    <igtbl:UltraGridColumn BaseColumnName="Tel" HeaderText="联系电话" Key="Tel" Width="20%">
                                        <Header Caption="联系电话">
                                            <RowLayoutColumnInfo OriginX="3" />
                                        </Header>
                                        <Footer>
                                            <RowLayoutColumnInfo OriginX="3" />
                                        </Footer>
                                    </igtbl:UltraGridColumn>
                                    <igtbl:UltraGridColumn BaseColumnName="Remark" HeaderText="备注" Key="Remark" Width="20%">
                                        <Header Caption="备注">
                                            <RowLayoutColumnInfo OriginX="4" />
                                        </Header>
                                        <Footer>
                                            <RowLayoutColumnInfo OriginX="4" />
                                        </Footer>
                                    </igtbl:UltraGridColumn>
                                    <igtbl:UltraGridColumn BaseColumnName="ID" HeaderText="编号" Hidden="True" Key="id">
                                        <Header Caption="编号">
                                            <RowLayoutColumnInfo OriginX="5" />
                                        </Header>
                                        <Footer>
                                            <RowLayoutColumnInfo OriginX="5" />
                                        </Footer>
                                    </igtbl:UltraGridColumn>
                                </Columns>
                                <AddNewRow Visible="NotSet" View="NotSet">
                                </AddNewRow>
                            </igtbl:UltraGridBand>
                        </Bands>
                        <DisplayLayout Version="4.00" SelectTypeRowDefault="Extended" Name="UWGSupplier"
                            AllowSortingDefault="OnClient" AllowColSizingDefault="Free" RowHeightDefault="20px"
                            TableLayout="Fixed" ViewType="Hierarchical" AllowColumnMovingDefault="OnServer"
                            HeaderClickActionDefault="SortMulti" StationaryMargins="Header" BorderCollapseDefault="Separate"
                            StationaryMarginsOutlookGroupBy="True" AutoGenerateColumns="False" CellClickActionDefault="RowSelect"
                            IndentationTypeDefault="Flat" NoDataMessage="没有查询到数据！" UseFixedHeaders="True">
                            <FrameStyle BackColor="Window" BorderWidth="1px" Font-Names="Microsoft Sans Serif"
                                Font-Size="8.25pt" Height="300px" Width="100%">
                            </FrameStyle>
                            <Pager MinimumPagesForDisplay="2" AllowPaging="True" NextText="下页" PageSize="10"
                                PrevText="上页" StyleMode="ComboBox" Pattern="&lt;table width=100%&gt;&lt;tr&gt;&lt;td align=left&gt;页码：[currentpageindex]/[pagecount] 每页:[pagesize]条&lt;/td&gt;&lt;td align=right&gt;[default]&lt;td&gt;&lt;/tr&gt;&lt;/table&gt;">
                                <Style BackColor="#FFFF99">
                                    <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" > </BorderDetails ></Style>
                            </Pager>
                            <EditCellStyleDefault BorderWidth="0px" BorderStyle="None">
                            </EditCellStyleDefault>
                            <FooterStyleDefault BackColor="LightGray" BorderWidth="1px" BorderStyle="Solid">
                                <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px">
                                </BorderDetails>
                            </FooterStyleDefault>
                            <HeaderStyleDefault HorizontalAlign="Center" BorderStyle="Solid" Height="26px" VerticalAlign="Middle">
                                <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px">
                                </BorderDetails>
                            </HeaderStyleDefault>
                            <RowSelectorStyleDefault Width="10px">
                            </RowSelectorStyleDefault>
                            <RowStyleDefault BackColor="Window" BorderColor="Silver" BorderWidth="1px" BorderStyle="Solid"
                                Font-Names="Microsoft Sans Serif" Font-Size="8.25pt">
                                <Padding Left="3px"></Padding>
                                <BorderDetails ColorLeft="Window" ColorTop="Window"></BorderDetails>
                            </RowStyleDefault>
                            <GroupByRowStyleDefault BackColor="Control" BorderColor="Window">
                            </GroupByRowStyleDefault>
                            <SelectedRowStyleDefault BackColor="#E4FFCA" BorderColor="#99FF99" BorderStyle="Solid"
                                BorderWidth="1px" Cursor="Hand">
                            </SelectedRowStyleDefault>
                            <GroupByBox Hidden="True" Prompt="">
                                <Style BackColor="ActiveBorder" BorderColor="Window">
                                    </Style>
                            </GroupByBox>
                            <AddNewBox>
                                <Style BackColor="Window" BorderColor="InactiveCaption" BorderWidth="1px" BorderStyle="Solid">
                                    <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" > </BorderDetails ></Style>
                            </AddNewBox>
                            <ActivationObject BorderColor="" BorderWidth="">
                            </ActivationObject>
                            <FilterOptionsDefault>
                                <FilterDropDownStyle CustomRules="overflow:auto;" BackColor="White" BorderColor="Silver"
                                    BorderWidth="1px" BorderStyle="Solid" Font-Names="Verdana,Arial,Helvetica,sans-serif"
                                    Font-Size="11px" Height="300px" Width="200px">
                                    <Padding Left="2px"></Padding>
                                </FilterDropDownStyle>
                                <FilterHighlightRowStyle BackColor="#151C55" ForeColor="White">
                                </FilterHighlightRowStyle>
                                <FilterOperandDropDownStyle CustomRules="overflow:auto;" BackColor="White" BorderColor="Silver"
                                    BorderWidth="1px" BorderStyle="Solid" Font-Names="Verdana,Arial,Helvetica,sans-serif"
                                    Font-Size="11px">
                                    <Padding Left="2px"></Padding>
                                </FilterOperandDropDownStyle>
                            </FilterOptionsDefault>
                            <ClientSideEvents BeforeRowActivateHandler="UWGSupplier_BeforeRowActivateHandler" />
                        </DisplayLayout>
                    </igtbl:UltraWebGrid>
                </td>
            </tr>
            <tr style="background-color: #DAE7F8;">
                <td>
                    <div style="width: 100%; text-align: left; height: 26px; vertical-align: middle;">
                        &nbsp;
                        <asp:Button ID="btnAdd" runat="server" Text="新增数据" Height="22px" Width="90px" OnClick="btnAdd_Click" />
                        &nbsp;
                        <asp:Button ID="btnEdit" runat="server" Text="编辑数据" Height="22px" Width="90px" OnClick="btnEdit_Click"
                            OnClientClick="return CheckIsSelectSupplier('edit')" />
                        &nbsp;
                        <asp:Button ID="btnDelete" runat="server" Text="删除数据" Height="22px" Width="90px"
                            OnClick="btnDelete_Click" OnClientClick="return CheckIsSelectSupplier('delete')" />
                        &nbsp;
                        <asp:Button ID="btnOutData" runat="server" OnClick="btnOutData_Click" Text="导出Excel"
                            Width="90px" /></div>
                </td>
            </tr>
        </table>
    </center>
    </form>
</body>
</html>
